import request from '@/utils/request'

export const getGoodsList = () => request({
  url: '/shops/list'
})
export function delGoodsList (id) {
  return request({
    url: `/shops/delete/${id}`,
    method: 'delete',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}
export function upGoodsStatus (data) {
  return request({
    url: '/shops/update/' + data.id,
    method: 'patch',
    data: { status: data.status }
  })
}
